CWS Command-line Tool - CWSWorkspaceRemovalTool |
|
The command-line tool CWSWorkspaceRemovalTool can be used to remove specific types of workspaces from a specified organization.
Refer to Using the CWS Command-line Tools for general instructions on how to use CWS command-line tools.
The command-line tool CWSWorkspaceRemovalTool accepts the following parameters:
CWSWorkspaceRemovalTool [ORGANIZATION_NAME|-all-organizations] [-psl] [-staging] [-care] [-development]
where,
<ORGANIZATION_NAME>
is the name of the organization in which the workspaces will be removed. To remove the specific types of workspaces from all organizations, you must provide the option-all-organizations
instead of the name of one specific organization.-psl
is an optional parameter. When this parameter is provided, all PSLs will be removed in the specified organization.-staging
is an optional parameter. When this parameter is provided, the application management space, also known as staging space, will be removed in the specified organization.-care
is an optional parameter. When this parameter is provided, all CARE spaces will be removed in the specified organization.-development
is an optional parameter. When this parameter is provided, all the development workspaces will be removed in the specified organization.
You can provide any combination of the last four parameters. When none of these parameters are provided, nothing will be removed.
For example, to remove all organization-level PSLs from an organization called 'MyOrganization', you must use the following command:
CWSWorkspaceRemovalTool "MyOrganization" -psl
Removing all organization-level PSLs as well as all development workspaces from all organizations can be done using the following command:
CWSWorkspaceRemovalTool -all-organizations -psl -development
Note: If the name of the organization contains white space characters, you must include it in double quotes as shown below:
CWSWorkspaceRemovalTool "My Organization" -psl -care -staging -development